package com.zxcrm.zxcrm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zxcrm.zxcrm.mapper.ZxcrmScoreEvaluateMapper;
import com.zxcrm.zxcrm.domain.ZxcrmScoreEvaluate;
import com.zxcrm.zxcrm.service.IZxcrmScoreEvaluateService;

/**
 * 评分与评价规则表Service业务层处理
 * 
 * @author xu
 * @date 2025-07-17
 */
@Service
public class ZxcrmScoreEvaluateServiceImpl implements IZxcrmScoreEvaluateService 
{
    @Autowired
    private ZxcrmScoreEvaluateMapper zxcrmScoreEvaluateMapper;

    /**
     * 查询评分与评价规则表
     * 
     * @param scoreId 评分与评价规则表主键
     * @return 评分与评价规则表
     */
    @Override
    public ZxcrmScoreEvaluate selectZxcrmScoreEvaluateByScoreId(Long scoreId)
    {
        return zxcrmScoreEvaluateMapper.selectZxcrmScoreEvaluateByScoreId(scoreId);
    }

    /**
     * 查询评分与评价规则表列表
     * 
     * @param zxcrmScoreEvaluate 评分与评价规则表
     * @return 评分与评价规则表
     */
    @Override
    public List<ZxcrmScoreEvaluate> selectZxcrmScoreEvaluateList(ZxcrmScoreEvaluate zxcrmScoreEvaluate)
    {
        return zxcrmScoreEvaluateMapper.selectZxcrmScoreEvaluateList(zxcrmScoreEvaluate);
    }

    /**
     * 新增评分与评价规则表
     * 
     * @param zxcrmScoreEvaluate 评分与评价规则表
     * @return 结果
     */
    @Override
    public int insertZxcrmScoreEvaluate(ZxcrmScoreEvaluate zxcrmScoreEvaluate)
    {
        return zxcrmScoreEvaluateMapper.insertZxcrmScoreEvaluate(zxcrmScoreEvaluate);
    }

    /**
     * 修改评分与评价规则表
     * 
     * @param zxcrmScoreEvaluate 评分与评价规则表
     * @return 结果
     */
    @Override
    public int updateZxcrmScoreEvaluate(ZxcrmScoreEvaluate zxcrmScoreEvaluate)
    {
        return zxcrmScoreEvaluateMapper.updateZxcrmScoreEvaluate(zxcrmScoreEvaluate);
    }

    /**
     * 批量删除评分与评价规则表
     * 
     * @param scoreIds 需要删除的评分与评价规则表主键
     * @return 结果
     */
    @Override
    public int deleteZxcrmScoreEvaluateByScoreIds(Long[] scoreIds)
    {
        return zxcrmScoreEvaluateMapper.deleteZxcrmScoreEvaluateByScoreIds(scoreIds);
    }

    /**
     * 删除评分与评价规则表信息
     * 
     * @param scoreId 评分与评价规则表主键
     * @return 结果
     */
    @Override
    public int deleteZxcrmScoreEvaluateByScoreId(Long scoreId)
    {
        return zxcrmScoreEvaluateMapper.deleteZxcrmScoreEvaluateByScoreId(scoreId);
    }

    @Override
    public void insertBatch(List<ZxcrmScoreEvaluate> zxcrmScoreEvaluateList)
    {
        zxcrmScoreEvaluateMapper.insertBatch(zxcrmScoreEvaluateList);
    }
}
